package com.beamfield.dao.sys;

import com.beamfield.model.ProductBasic;
import com.beamfield.model.ProductBasicExample;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ProductBasicMapper {
	int deleteByPrimaryKey(String product_basic_id);

	int insert(ProductBasic record);

	int insertSelective(ProductBasic record);

	List<ProductBasic> selectByExample(ProductBasicExample example);

	ProductBasic selectByPrimaryKey(String product_basic_id);

	int updateByPrimaryKeySelective(ProductBasic record);

	int updateByPrimaryKey(ProductBasic record);

	@Delete("delete from  t_product_basic where beam_id=#{0}")
	void deleteAll(Long beamid);

	List<ProductBasic> selectByBeamId(@Param("beamId") Long beamId,@Param("offset") Integer offset,@Param("limit") Integer limit);

}